:root {
  --bg-gradient: linear-gradient(135deg, #a066f8 0%, #f9c9c5 100%);
  --card-bg: #ffffff;
  --soft-shadow: 0 25px 45px rgba(31, 39, 79, 0.12);
  --border-radius-lg: 26px;
  --text-muted: #7a7f87;
  --text-body: #1f2750;
  --accent-1: #ffb347;
  --accent-2: #ff6a6a;
  --accent-3: #ffc947;
  --accent-4: #947bff;
}

.dashboard-page {
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--bg-gradient);
  padding: 48px 52px;
  box-sizing: border-box;
  color: var(--text-body);
  gap: 36px;
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--bg-gradient);
  z-index: -2;
}

.dashboard-page::after {
  content: '';
  position: fixed;
  inset: 28px;
  border-radius: 46px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(140px);
  z-index: -1;
}

.sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.46) 100%);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(25px);
  display: flex;
  flex-direction: column;
  padding: 28px 18px;
  gap: 28px;
  box-shadow: var(--soft-shadow);
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--soft-shadow);
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
}

.profile-info .name {
  font-weight: 600;
  font-size: 16px;
}

.profile-info .role {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-menu {
  display: grid;
  gap: 12px;
}

.sidebar-menu a {
  text-decoration: none;
  color: inherit;
}

.menu-item {
  all: unset;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 16px;
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.2s;
  position: relative;
}

.menu-item:hover,
.menu-item.active {
  background: var(--card-bg);
  color: var(--text-body);
  box-shadow: var(--soft-shadow);
}

.menu-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.menu-item span {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 12px;
  color: var(--text-body);
  font-weight: 600;
  opacity: 0;
  transform: translateX(-8px);
  transition: 0.2s;
}

.menu-item.active span,
.menu-item:hover span {
  opacity: 1;
  transform: translateX(0);
}

.main-content {
  position: relative;
  background: rgba(255, 255, 255, 0.86);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.main-content::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.main-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.6);
  background: #fff;
  padding: 8px;
}

.brand p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.page-title {
  position: relative;
  display: inline-block;
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  color: var(--text-body);
}

.page-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 70%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff89d6, #a788ff);
}

.header-actions {
  display: flex;
  gap: 12px;
}

.icon-btn {
  border: none;
  background: var(--card-bg);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.2s;
}

.icon-btn:hover {
  color: var(--text-body);
  transform: translateY(-1px);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 22px;
  font-size: 12px;
  font-weight: 600;
}

.badge-success {
  background: rgba(56, 208, 144, 0.14);
  color: #27a46f;
}

.badge-warning {
  background: rgba(240, 107, 165, 0.12);
  color: #f06ba5;
}

.badge-danger {
  background: rgba(240, 92, 92, 0.16);
  color: #e65050;
}

.btn-primary {
  border: none;
  background: #536dfe;
  color: #fff;
  padding: 12px 28px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--soft-shadow);
}

.ghost-btn {
  border: 1px solid rgba(148, 123, 255, 0.28);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-body);
  padding: 8px 18px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(31, 39, 79, 0.05);
}

.ghost-btn:hover {
  background: linear-gradient(135deg, rgba(255, 137, 214, 0.18), rgba(167, 136, 255, 0.18));
  border-color: rgba(148, 123, 255, 0.45);
}

.card-header-actions {
  display: flex;
  gap: 12px;
}

